-- GENERATED SPELL FOR [Infinite Corruptor] --


function spell0_32273(pUnit, Event) --@Corrupting Blight,n/a--
pUnit:FullCastSpellOnTarget(60588,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32273', 0, 1)
end

function spell1_32273(pUnit, Event) --@Void Strike,n/a--
pUnit:FullCastSpellOnTarget(60590,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32273', 671, 1)
end

function Sorts_32273(pUnit, Event)
local choix_sorts_32273 = math.random(0, 1)
if choix_sorts_32273 == 0 then
pUnit:RegisterEvent('spell0_32273', 1, 1)
end
if choix_sorts_32273 == 1 then
pUnit:RegisterEvent('spell1_32273', 1, 1)
end
end

function mob32273_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32273', math.random(1500, 3000), 1)
end

function mob32273_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32273_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32273_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32273, 1, 'mob32273_Action')
RegisterUnitEvent(32273, 2, 'mob32273_Leave')
RegisterUnitEvent(32273, 3, 'mob32273_Kill')
RegisterUnitEvent(32273, 4, 'mob32273_Die')
